<?php

/**
 * 产品包定义
 */
Route::get('entity/pm/pmtags', ['as'=> 'entity.pm.pmtags.index', 'uses' => 'Entity\Pm\PmtagController@index']);
Route::post('entity/pm/pmtags', ['as'=> 'entity.pm.pmtags.store', 'uses' => 'Entity\Pm\PmtagController@store']);
Route::get('entity/pm/pmtags/create', ['as'=> 'entity.pm.pmtags.create', 'uses' => 'Entity\Pm\PmtagController@create']);
Route::put('entity/pm/pmtags/{pmtags}', ['as'=> 'entity.pm.pmtags.update', 'uses' => 'Entity\Pm\PmtagController@update']);
Route::patch('entity/pm/pmtags/{pmtags}', ['as'=> 'entity.pm.pmtags.update', 'uses' => 'Entity\Pm\PmtagController@update']);
Route::delete('entity/pm/pmtags/{pmtags}', ['as'=> 'entity.pm.pmtags.destroy', 'uses' => 'Entity\Pm\PmtagController@destroy']);
Route::get('entity/pm/pmtags/{pmtags}', ['as'=> 'entity.pm.pmtags.show', 'uses' => 'Entity\Pm\PmtagController@show']);
Route::get('entity/pm/pmtags/{pmtags}/edit', ['as'=> 'entity.pm.pmtags.edit', 'uses' => 'Entity\Pm\PmtagController@edit']);

/**
 * 产品包-媒资编辑
 */
// 编辑媒资界面
Route::get('entity/pm/pmtags/{pmtags}/edit/asset', ['as'=> 'entity.pm.pmtags.edit_asset', 'uses' => 'Entity\Pm\PmtagController@editAsset']);
// 媒资数据
Route::post('entity/pm/pmtags/asset/data', ['as'=> 'entity.pm.pmtags.vasseti_data', 'uses' => 'Entity\Pm\PmtagController@vassetiData']);
// 已选的媒资数据
Route::post('entity/pm/pmtags/asset/selected', ['as'=> 'entity.pm.pmtags.selected_vasseti', 'uses' => 'Entity\Pm\PmtagController@selectedVasset']);
// 添加单个媒资|添加多个媒资
Route::post('entity/pm/pmtags/asset/add', ['as'=> 'entity.pm.pmtags.add_asset', 'uses' => 'Entity\Pm\PmtagController@addVasseti']);
// 删除单个媒资|删除多个媒资
Route::post('entity/pm/pmtags/asset/delete', ['as'=> 'entity.pm.pmtags.deltete_asset', 'uses' => 'Entity\Pm\PmtagController@deleteVasseti']);

/**
 * 产品包-直播媒资编辑
 */
// 编辑媒资界面
Route::get('entity/pm/pmtags/{pmtags}/edit/vchan', ['as'=> 'entity.pm.pmtags.edit_vchan', 'uses' => 'Entity\Pm\PmtagController@editVchan']);
// 媒资数据
Route::post('entity/pm/pmtags/vchan/data', ['as'=> 'entity.pm.pmtags.vchan_data', 'uses' => 'Entity\Pm\PmtagController@vchanData']);
// 已选的媒资数据
Route::post('entity/pm/pmtags/vchan/selected', ['as'=> 'entity.pm.pmtags.selected_vchan', 'uses' => 'Entity\Pm\PmtagController@selectedVchan']);
// 添加单个媒资|添加多个媒资
Route::post('entity/pm/pmtags/vchan/add', ['as'=> 'entity.pm.pmtags.add_vchan', 'uses' => 'Entity\Pm\PmtagController@addVchan']);
// 删除单个媒资|删除多个媒资
Route::post('entity/pm/pmtags/vchan/delete', ['as'=> 'entity.pm.pmtags.deltete_vchan', 'uses' => 'Entity\Pm\PmtagController@deleteVchan']);

/**
 * 定价-产品包、计费周期编辑
 */
// 全部上线
Route::get('entity/pm/pmtags/all_up/view', [
    'as'=> 'entity.pm.pmtags.all_up', 
    'uses' => 'Entity\Pm\PmtagController@allUp'
]);
// 全部下线
Route::get('entity/pm/pmtags/all_down/view', [
    'as'=> 'entity.pm.pmtags.all_down', 
    'uses' => 'Entity\Pm\PmtagController@allDown'
]);
// 上线发布
Route::get('entity/pm/pmtags/publish/view', [
    'as'=> 'entity.pm.pmtags.publish', 
    'uses' => 'Entity\Pm\PmtagController@publish'
]);
// 下线发布
Route::get('entity/pm/pmtags/publish_down/view', [
    'as'=> 'entity.pm.pmtags.publish_down', 
    'uses' => 'Entity\Pm\PmtagController@publishDown'
]);
// 单个,批量上线
Route::post('entity/pm/pmtags/up/view', [
    'as'=> 'entity.pm.pmtags.up', 
    'uses' => 'Entity\Pm\PmtagController@batchModerate'
]);
// 单个,批量下线
Route::post('entity/pm/pmtags/down/view', [
    'as'=> 'entity.pm.pmtags.down', 
    'uses' => 'Entity\Pm\PmtagController@batchModerate'
]);
// 单个,批量上线发布
Route::post('entity/pm/pmtags/publish_one/view', [
    'as'=> 'entity.pm.pmtags.publish_one', 
    'uses' => 'Entity\Pm\PmtagController@batchModerate'
]);
// 单个,批量下线发布
Route::post('entity/pm/pmtags/publish_down_one/view', [
    'as'=> 'entity.pm.pmtags.publish_down_one', 
    'uses' => 'Entity\Pm\PmtagController@batchModerate'
]);
// 查询进度
Route::get('entity/pm/pmtags/progress/view', [
    'as'=> 'entity.pm.pmtags.progress', 
    'uses' => 'Entity\Pm\PmtagController@queryProgress'
]);